#include <stdio.h>

int myLen(const char *str) {
    // int cnt = 0;
    int idx = 0;
    while (str[idx] != 0)
    {
        idx++;
    }
    return idx;
}

void testGetchar() {
    char c;
    while ((c = getchar()) != EOF)
    // while (c = getchar() && c != EOF)
    {   
        putchar(c);
    }
    printf("exit");
}

int main(){
    char *str = "hello";
    // str[0] = 'H';// Bus error: 10  
    int c = '\0';
    c = '0';
    printf("%s\n", str);

    // testGetchar();

    char *strs = "aaabbb";
    int len = myLen(strs);
    printf("len=%d", len);

    return 0;
}